<include file="public@header"/>
</head>
<body>
<div class="wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a href="{:url('news/adminCate/index')}">新闻分类管理</a></li>
		<li><a href="{:url('news/adminCate/edit')}">添加新闻分类</a></li>
	</ul>
	<form class="well form-inline margin-top-20" method="post" action="{:url('news/adminCate/index')}">
		关键字：
		<input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
			   placeholder="文档分类名称">
		<input type="submit" class="btn btn-primary" value="搜索"/>
		<a class="btn btn-danger" href="{:url('news/adminCate/index')}">清空</a>
	</form>
	<form method="post" class="js-ajax-form">
		<table class="table table-hover table-bordered">
			<thead>
			<tr>
				<th>状态</th>
				<th>分类名称</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>

			</thead>
			<tbody>
			<php>
				$notice_statuses=array("1"=>"正常","2"=>"关闭","0"=>"删除");
			</php>
			<foreach name="list" item="vo">
				<tr>
					<td>{$notice_statuses[$vo['isopen']]}</td>
					<td>{$vo.name}</td>
					<td>{:date('Y-m-d H:i:s',$vo['ctime'])}</td>
					<td>
						<a href="{:url('news/adminCate/edit',array('id'=>$vo['id']))}">编辑</a>
					</td>
				</tr>
			</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>